package com.concerneyes.trytoglasses;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.concerneyes.R;

import common.AbsBaseView;
import common.BaseFragment;

/**
 *
 */
@SuppressLint("ValidFragment")
public class ViewPage extends AbsBaseView {
    private LinearLayout fl_glass;
    private Context context;

    /**
     * 图片展示fragment
     *
     * @param context
     * @param Imagepath 图片地址
     */
    public ViewPage(Context context, String Imagepath) {
        super(context);
        this.context = context;
        initView();

    }

    private void initView() {
        fl_glass = (LinearLayout) findViewById(R.id.fl_glass);
        ViewGroup.LayoutParams lp = fl_glass.getLayoutParams();
        lp.width = context.getResources().getDisplayMetrics().widthPixels / 3;
        lp.height = context.getResources().getDisplayMetrics().heightPixels;
        fl_glass.setLayoutParams(lp);
        setBackgroundColor(getResources().getColor(R.color.transparent));
    }


    @Override
    public int layoutResId() {
        return R.layout.view_price_item;
    }

    @Override
    public void loadData(Object data) {

    }

    @Override
    public boolean isEmpty() {
        return false;
    }


}